<h1>Results for Task <%= link_to @task.name, @task %></h1>
<hr>

<div class="table-responsive">
	<table class="table">
		<% @results.each do |result| %>
			<tr class="bg-<%= result.marker == 'yes' ? 'success' : 'danger' %>">
				<td><img src="<%= images_serve_path(sample_id: result.sample1_id) %>" height="200px"></td>
				<td><img src="<%= images_serve_path(sample_id: result.sample2_id) %>" height="200px"></td>
				<td>
					<%= link_to "Cancel", censor_cancel_path(result_id: result.id), class: 'btn btn-success btn-lg big-button' %>
				</td>
			</tr>
		<% end %>		
	</table>
	<%= paginate @results %>
</div>
